package com.k2091.washcar.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.k2091.washcar.entity.Price;
import com.k2091.washcar.entity.Token;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2021-06-01
 */
public interface TokenMapper extends BaseMapper<Token> {

    @Select("select * from token where token=#{token}")
    Token selectToken(String token);

//    @Insert("insert into token values(null,#{token.token})")
//    void addToken(@Param("token") Token token);
}
